-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
54 lines (48 loc) · 1.65 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from setuptools import setup
import os
def get_version(path):
fn = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
path, "__init__.py")
with open(fn) as f:
for line in f:
if '__version__' in line:
parts = line.split("=")
return parts[1].split("'")[1]
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGELOG = open(os.path.join(here, 'CHANGELOG.rst')).read()
setup(
name="devpi-lockdown",
description="devpi-lockdown: tools to enable authentication for read access",
long_description=README + "\n\n" + CHANGELOG,
url="/~https://github.com/devpi/devpi-lockdown",
version=get_version("devpi_lockdown"),
maintainer="Florian Schulze",
maintainer_email="mail@florian-schulze.net",
license="MIT",
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python"] + [
"Programming Language :: Python :: %s" % x
for x in "3 3.8 3.9 3.10 3.11 3.12".split()],
entry_points={
'devpi_server': [
"devpi-lockdown = devpi_lockdown.main"]},
install_requires=[
'devpi-server>=6.10.0',
'devpi-web'],
extras_require={
'tests': [
'webtest',
'mock',
'devpi-client',
'pytest',
'pytest-cov']},
include_package_data=True,
python_requires='>=3.8',
zip_safe=False,
packages=['devpi_lockdown'])