-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (45 loc) · 1.57 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
import os
from glob import glob
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# rm -R build/ dist/ *egg-info
# python3 setup.py sdist
# twine upload dist/*
SRC_FOLDER = 'src'
PKG_NAME = 'unicms_calendar'
setup(
# name="unicms-calendar",
name=PKG_NAME,
version='0.1',
packages=[PKG_NAME],
package_dir={PKG_NAME: f"{SRC_FOLDER}/{PKG_NAME}"},
package_data={PKG_NAME: [i.replace(f'{SRC_FOLDER}/{PKG_NAME}/', '')
for i in glob(f'{SRC_FOLDER}/{PKG_NAME}/**',
recursive=True)]
},
license='Apache License 2.0',
description="uniCMS Events manager",
long_description=README,
long_description_content_type='text/markdown',
url='https://github.com/UniversitaDellaCalabria/unicms-calendar',
author='Francesco Filicetti',
author_email='[email protected]',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 2.0',
'Framework :: Django :: 3.0',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
install_requires=[
'django>=3.2,<5.0',
'unicms'
],
)