-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
51 lines (45 loc) · 1.64 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
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-passwd-reset",
description="devpi-passwd-reset: password reset view for devpi-web",
long_description=README + "\n\n" + CHANGELOG,
url="https://github.com/devpi/devpi-passwd-reset",
version=get_version("devpi_passwd_reset"),
maintainer="Florian Schulze",
maintainer_email="florian.schulze@gmx.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.7 3.8 3.9 3.10 3.11".split()],
entry_points={
'devpi_server': [
"devpi-passwd-reset = devpi_passwd_reset.main"],
'devpi_passwd_reset': [
"devpi-passwd-reset = devpi_passwd_reset.main"]},
install_requires=[
'PyYAML',
'devpi-server>=6.0.0',
'devpi-web',
'pyramid_mailer'],
include_package_data=True,
python_requires='>=3.7',
zip_safe=False,
packages=['devpi_passwd_reset'])