-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #537 from mkniewallner/use-setup-cfg
Use `setup.cfg` to define most package metadata
- Loading branch information
Showing
4 changed files
with
66 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[metadata] | ||
name = tartiflette | ||
version = 1.4.0 | ||
description = GraphQL Engine for Python | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://tartiflette.io | ||
author = Dailymotion Core API Team | ||
author_email = [email protected] | ||
license = MIT | ||
license_files = LICENSE | ||
project_urls = | ||
Documentation = https://tartiflette.io | ||
Source code = https://github.com/tartiflette/tartiflette | ||
Changelog = https://github.com/tartiflette/tartiflette/blob/master/CHANGELOG.md | ||
Issue tracker = https://github.com/tartiflette/tartiflette/issues | ||
classifiers = | ||
Intended Audience :: Developers | ||
Topic :: Software Development :: Libraries | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
keywords = | ||
api | ||
graphql | ||
protocol | ||
rest | ||
relay | ||
tartiflette | ||
dailymotion | ||
|
||
[options] | ||
python_requires = >=3.6 | ||
install_requires = | ||
cffi>=1.0.0,<2.0.0 | ||
lark-parser==0.12.0 | ||
packages = find: | ||
include_package_data = True | ||
|
||
[options.extras_require] | ||
test = | ||
pytest==6.2.5 | ||
pytest-cov==2.12.1 | ||
pytest-asyncio==0.15.1 | ||
pytest-xdist==2.3.0 | ||
pylint==2.10.2 | ||
black==21.8b0 | ||
isort==5.9.3 | ||
benchmark = pytest-benchmark==3.4.1 | ||
|
||
[options.packages.find] | ||
exclude = tests* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
import subprocess | ||
import sys | ||
|
||
from setuptools import Extension, find_packages, setup | ||
from setuptools import Extension, setup | ||
from setuptools.command.build_ext import build_ext | ||
from setuptools.command.build_py import build_py | ||
|
||
|
@@ -51,55 +51,7 @@ def __init__(self): | |
super().__init__("libgraphqlparser", sources=[]) | ||
|
||
|
||
_TEST_REQUIRE = [ | ||
"pytest==6.2.5", | ||
"pytest-cov==2.12.1", | ||
"pytest-asyncio==0.15.1", | ||
"pytest-xdist==2.3.0", | ||
"pylint==2.10.2", | ||
"black==21.8b0", | ||
"isort==5.9.3", | ||
] | ||
|
||
_BENCHMARK_REQUIRE = ["pytest-benchmark==3.4.1"] | ||
|
||
_VERSION = "1.4.0" | ||
|
||
_PACKAGES = find_packages(exclude=["tests*"]) | ||
|
||
|
||
def _read_file(filename): | ||
with open(filename) as afile: | ||
return afile.read() | ||
|
||
|
||
setup( | ||
name="tartiflette", | ||
version=_VERSION, | ||
description="GraphQL Engine for Python", | ||
long_description=_read_file("README.md"), | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/tartiflette/tartiflette", | ||
author="Dailymotion Core API Team", | ||
author_email="[email protected]", | ||
license="MIT", | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
], | ||
keywords="api graphql protocol api rest relay tartiflette dailymotion", | ||
packages=_PACKAGES, | ||
install_requires=["cffi>=1.0.0,<2.0.0", "lark-parser==0.12.0"], | ||
tests_require=_TEST_REQUIRE, | ||
extras_require={"test": _TEST_REQUIRE, "benchmark": _BENCHMARK_REQUIRE}, | ||
cmdclass={"build_ext": BuildExtCmd, "build_py": BuildPyCmd}, | ||
ext_modules=[LibGraphQLParserExtension()], | ||
include_package_data=True, | ||
) |