diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-08-06 00:04:25 +0200 |
---|---|---|
committer | Nejc Habjan <nejc.habjan@siemens.com> | 2022-08-06 00:28:54 +0200 |
commit | 8d45db78b4e848b0ed41cc1ce338457b0ebc81bc (patch) | |
tree | 98885ab19534de0103eb238c3a77c7d26676ce40 /setup.py | |
parent | 297d77dde2105912a1f465561cc71e39e95813a1 (diff) | |
download | gitlab-refactor/python-build-pep621.tar.gz |
refactor(build): build project using PEP 621refactor/python-build-pep621
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/setup.py b/setup.py deleted file mode 100644 index bb90c19..0000000 --- a/setup.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -from setuptools import find_packages, setup - - -def get_version() -> str: - version = "" - with open("gitlab/_version.py", "r", encoding="utf-8") as f: - for line in f: - if line.startswith("__version__"): - version = eval(line.split("=")[-1]) - break - return version - - -with open("README.rst", "r", encoding="utf-8") as f: - readme = f.read() - -setup( - name="python-gitlab", - version=get_version(), - description="Interact with GitLab API", - long_description=readme, - long_description_content_type="text/x-rst", - author="Gauvain Pocentek", - author_email="gauvain@pocentek.net", - license="LGPLv3", - url="https://github.com/python-gitlab/python-gitlab", - packages=find_packages(exclude=["docs*", "tests*"]), - install_requires=["requests>=2.25.0", "requests-toolbelt>=0.9.1"], - package_data={ - "gitlab": ["py.typed"], - }, - python_requires=">=3.7.0", - entry_points={"console_scripts": ["gitlab = gitlab.cli:main"]}, - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Console", - "Intended Audience :: System Administrators", - "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", - "Natural Language :: English", - "Operating System :: POSIX", - "Operating System :: Microsoft :: Windows", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - ], - extras_require={ - "autocompletion": ["argcomplete>=1.10.0,<3"], - "yaml": ["PyYaml>=5.2"], - }, -) |