diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b5a3c46 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 7b3e062..f4a4e1b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,3 @@ -[check-manifest] -ignore = - .travis.yml - [bdist_wheel] universal=1 diff --git a/setup.py b/setup.py index 79186f3..0421e3f 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,19 @@ from setuptools import setup, find_packages from os import path -from lokalise._version import __version__ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() +about = {} +with open(path.join(this_directory, 'lokalise', '_version.py'), encoding='utf-8') as f: + exec(f.read(), about) + setup( name="python-lokalise-api", - version=__version__, - author="Ilya Bodrov", + version=about['__version__'], + author="Ilya Bodrov-Krukowski", author_email="bodrovis@protonmail.com", description="Official Python interface for the Lokalise API v2", long_description=long_description, @@ -24,7 +27,7 @@ }, package_dir={'lokalise': 'lokalise'}, platforms=['Any'], - install_requires=['requests>2,<3'], + install_requires=['requests'], tests_require=['pytest', 'vcrpy', 'pytest-vcr', 'pytest-cov'], classifiers=[ 'Development Status :: 5 - Production/Stable',