forked from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (50 loc) · 1.89 KB
/
setup.py
File metadata and controls
62 lines (50 loc) · 1.89 KB
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
55
56
57
58
59
60
61
62
"""Template setup file."""
import codecs
import os
from io import open as io_open
from setuptools import setup
# Use single source package versioning. Follows:
# https://packaging.python.org/guides/single-sourcing-package-version/
#
# With this approach, we can include the version within the setup file
# while at the same time allowing the user to print the version from
# the module
HERE = os.path.abspath(os.path.dirname(__file__))
__version__ = None
version_file = os.path.join(HERE, 'ansys', 'product', 'library', '_version.py')
with io_open(version_file, mode='r') as fd:
exec(fd.read())
# Get the long description from the README file
# This is needed for the description on PyPI
def read(rel_path):
with codecs.open(os.path.join(HERE, rel_path), 'r') as fp:
return fp.read()
with open(os.path.join(HERE, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='ansys-product-library',
packages=['ansys.product.library'],
version=__version__,
description='Template PyAnsys library',
long_description=long_description,
long_description_content_type='text/x-rst',
url='https://github.com/pyansys/template/',
license='MIT',
author='ANSYS, Inc.', # this is required
maintainer='PyAnsys developers', # you can change this
# this email group works
maintainer_email='[email protected]',
# Include all install requirements here. If you have a longer
# list, feel free just to create the list outside of ``setup`` and
# add it here.
install_requires=[],
# Plan on supporting only the currently supported versions of Python
python_requires='>=3.6',
# Less than critical but helpful
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
)