Commit 6d24aecd authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Switching to poetry

parent d4a095ba
DBnomics.egg-info
.eggs
# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
# Edit at https://www.toptal.com/developers/gitignore?templates=python,jupyternotebooks
### JupyterNotebooks ###
# gitignore template for Jupyter Notebooks
# website: http://jupyter.org/
.ipynb_checkpoints
*.pyc
build
dist
*/.ipynb_checkpoints/*
# IPython
profile_default/
ipython_config.py
# Remove previous ipynb_checkpoints
# git rm -r .ipynb_checkpoints/
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
pytestdebug.log
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
doc/_build/
# PyBuilder
target/
# Jupyter Notebook
# IPython
# pyenv
.python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
pythonenv*
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# profiling data
.prof
# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
This diff is collapsed.
[virtualenvs]
in-project = true
[tool.poetry]
name = "dbnomics"
version = "1.2.0"
description = "DBnomics Python Client"
authors = ["DBnomics Team <contact@nomics.world>"]
license = "AGPL-3.0-or-later"
readme = "README.md"
repository = "https://git.nomics.world/dbnomics/dbnomics-python-client"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Information Analysis",
"Environment :: Web Environment",
"Operating System :: POSIX",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
]
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.18.4"
pandas = "^1.1.4"
[tool.poetry.dev-dependencies]
black = "^20.8b1"
flake8 = "^3.8.4"
mypy = "^0.790"
# flake8 plugins
flake8-black = "^0.2.1"
flake8-bugbear = "^20.1.4"
flake8-breakpoint = "^1.1.0"
flake8-builtins = "^1.5.3"
flake8-comprehensions = "^3.3.0"
flake8-docstrings = "^1.5.0"
flake8-eradicate = "^1.0.0"
flake8-fixme = "^1.1.1"
flake8-isort = "^4.0.0"
flake8-logging-format = "^0.6.0"
flake8-print = "^3.1.4"
flake8-rst-docstrings = "^0.0.14"
pep8-naming = "^0.11.1"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[isort]
line_length = 120
[pycodestyle]
max_line_length = 120
[pylint]
max_line_length = 120
[aliases]
test=pytest
[tool:pytest]
addopts = --doctest-modules
[flake8]
# Recommend matching the black line length (default 88),
# rather than using the flake8 default of 79:
max-line-length = 88
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
# dbnomics-python-client -- Access DBnomics time series from Python
# By: DBnomics Team <christophe.benz@cepremap.org>
#
# Copyright (C) 2017-2019 Cepremap
# https://git.nomics.world/dbnomics/dbnomics-python-client
#
# dbnomics-python-client is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# dbnomics-python-client is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
Project properties and packaging infos.
"""
import codecs
from os import path
from setuptools import find_packages, setup
HERE = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with codecs.open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(
name='DBnomics',
version='1.2.0',
description='DBnomics Python Client',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url='https://git.nomics.world/dbnomics/dbnomics-python-client',
author='DBnomics Team',
author_email='contact@nomics.world',
license='AGPLv3',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Information Analysis',
'Environment :: Web Environment',
'Operating System :: POSIX',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU Affero General Public License v3',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
],
# What does your project relate to?
keywords='economics time-series db.nomics',
packages=find_packages(),
install_requires=[
'requests >= 2.18.4',
'pandas >= 0.21',
'pydantic',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'pytest-vcr',
],
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment