Gitlab Community Edition Instance

Commit d8626719 authored by Marcel Hellkamp's avatar Marcel Hellkamp
Browse files

Removed requirements.txt and min-versions.

We never verified minimum version requirements for dependencies and
allow higher versions without bounds. We could just as well ignore
versions for now, until Pipfile or something else becomes a standard.
parent c9f69a85
......@@ -2,9 +2,9 @@ DOCS_ALL = $(shell find docs/ -type f)
SRC_ALL = $(shell find src/ -type f -name '*.py')
venv: venv/touch-me
venv/touch-me: setup.py requirements.txt
venv/touch-me: setup.py
test -d venv || python3 -mvenv venv
venv/bin/pip install -U pip -r requirements.txt
venv/bin/pip install -U pip -e .[dev,test,docs]
touch venv/touch-me
docs: build/docs/index.html
......@@ -37,4 +37,4 @@ push: test lint
_PHONY: venv docs dist lint test push clean format
clean:
rm -rf venv .tox
rm -rf build dist venv .tox .pytest_cache .coverage MANIFEST
# development environment: install in development mode
-e .[dev,test,docs]
......@@ -2,14 +2,15 @@ from setuptools import setup, find_packages
def read(name):
with open(name, 'r') as fp:
with open(name, "r") as fp:
return fp.read().strip()
def get_version():
import re
pattern = re.compile(r'__version__\s+=\s+(?:"|\')+([^"\']+)(?:"|\')')
with open('src/pycdstar3/__init__.py') as fp:
with open("src/pycdstar3/__init__.py") as fp:
for line in fp:
m = pattern.match(line)
if m:
......@@ -17,53 +18,39 @@ def get_version():
setup(
name='pycdstar3',
name="pycdstar3",
version=get_version(),
author='Marcel Hellkamp',
author_email='marc@gsites.de',
url='https://gitlab.gwdg.de/cdstar/pycdstar3',
license='LICENSE.txt',
author="Marcel Hellkamp",
author_email="marc@gsites.de",
url="https://gitlab.gwdg.de/cdstar/pycdstar3",
license="LICENSE.txt",
description="Library and command-line client to access CDSTAR (3.0+)",
long_description=read('README.md'),
long_description_content_type='text/markdown',
packages=find_packages(where='src'),
package_dir={'': 'src'},
entry_points={
'console_scripts': ['pycdstar3=pycdstar3.__main__:main'],
},
long_description=read("README.md"),
long_description_content_type="text/markdown",
packages=find_packages(where="src"),
package_dir={"": "src"},
entry_points={"console_scripts": ["pycdstar3=pycdstar3.__main__:main"]},
include_package_data=True,
zip_safe=False,
platforms='any',
python_requires='>=3.5',
install_requires=[
'requests >= 2.22',
'requests-toolbelt >= 0.9.1',
'tqdm >= 4.32.2',
'iso8601 >= 0.1.12',
],
platforms="any",
python_requires=">=3.5",
install_requires=["requests", "requests-toolbelt", "tqdm", "iso8601"],
extras_require={
'dev': ['flake8', 'wheel', 'twine', 'tox', 'black'],
'test': [
'mock',
'pytest>=3.6',
'pytest-cov>=2.8.1',
'coverage>=4.2',
'responses>=0.10',
], 'docs': [
'sphinx>=2.2.0',
],
"dev": ["flake8", "wheel", "twine", "tox", "black"],
"test": ["mock", "pytest", "pytest-cov", "coverage", "responses"],
"docs": ["sphinx"],
},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
)
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