|
1 |
| -#!/usr/bin/env python |
2 | 1 | # -*- coding: utf-8 -*-
|
3 | 2 |
|
4 | 3 | # Setup module for the Data Manager Job Decoder module
|
5 | 4 | #
|
6 |
| -# January 2022 |
| 5 | +# April 2022 |
7 | 6 |
|
8 |
| -from setuptools import setup |
9 | 7 | import os
|
| 8 | +import setuptools |
10 | 9 |
|
11 |
| -# Pull in the essential run-time requirements |
12 |
| -with open('requirements.txt') as file: |
13 |
| - requirements = file.read().splitlines() |
14 | 10 |
|
| 11 | +# Pull in the essential run-time requirements |
| 12 | +with open("requirements.txt", "r", encoding="utf-8") as fh: |
| 13 | + requirements = fh.read().splitlines() |
15 | 14 |
|
16 | 15 | # Use the README.rst as the long description.
|
17 |
| -def get_long_description(): |
18 |
| - return open('README.rst').read() |
19 |
| - |
20 |
| - |
21 |
| -setup( |
22 |
| - |
23 |
| - name='im-data-manager-job-decoder', |
24 |
| - version=os.environ.get('GITHUB_REF_SLUG', '1.0.0'), |
25 |
| - author='Alan Christie', |
26 |
| - |
27 |
| - url='https://github.com/informaticsmatters/data-manager-job-decoder', |
28 |
| - license='MIT', |
29 |
| - description='Job decoding logic', |
30 |
| - long_description=get_long_description(), |
31 |
| - keywords='jinja2 decoder', |
32 |
| - platforms=['any'], |
33 |
| - |
| 16 | +with open("README.rst", "r", encoding="utf-8") as fh: |
| 17 | + long_description = fh.read() |
| 18 | + |
| 19 | +setuptools.setup( |
| 20 | + name="im-data-manager-job-decoder", |
| 21 | + version=os.environ.get("GITHUB_REF_SLUG", "1.0.0"), |
| 22 | + author="Alan Christie", |
| 23 | + |
| 24 | + url="https://github.com/informaticsmatters/data-manager-job-decoder", |
| 25 | + license="MIT", |
| 26 | + description="Job decoding logic", |
| 27 | + long_description=long_description, |
| 28 | + keywords="jinja2 decoder", |
| 29 | + platforms=["any"], |
34 | 30 | # Our modules to package
|
35 |
| - packages=['decoder'], |
| 31 | + packages=["decoder"], |
36 | 32 | include_package_data=True,
|
37 |
| - |
38 | 33 | # Project classification:
|
39 | 34 | # https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
40 | 35 | classifiers=[
|
41 |
| - 'Development Status :: 5 - Production/Stable', |
42 |
| - 'Environment :: Other Environment', |
43 |
| - 'Intended Audience :: Developers', |
44 |
| - 'License :: OSI Approved :: MIT License', |
45 |
| - 'Programming Language :: Python :: 3.10', |
46 |
| - 'Topic :: Software Development :: Libraries :: Python Modules', |
47 |
| - 'Operating System :: POSIX :: Linux', |
| 36 | + "Development Status :: 5 - Production/Stable", |
| 37 | + "Environment :: Other Environment", |
| 38 | + "Intended Audience :: Developers", |
| 39 | + "License :: OSI Approved :: MIT License", |
| 40 | + "Programming Language :: Python :: 3.10", |
| 41 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 42 | + "Operating System :: POSIX :: Linux", |
48 | 43 | ],
|
49 |
| - |
50 | 44 | install_requires=requirements,
|
51 |
| - |
52 | 45 | zip_safe=False,
|
53 |
| - |
54 | 46 | )
|
0 commit comments