Skip to content

Commit 8bb0f38

Browse files
author
Alan Christie
committed
build: Siwitch to pyproject.toml
1 parent 00cdbae commit 8bb0f38

File tree

5 files changed

+31
-50
lines changed

5 files changed

+31
-50
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
**/.DS_Store
12
.idea
23
.pytest_cache
34
.coverage
@@ -6,4 +7,3 @@
67
venv
78
build
89
dist
9-

package-requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=60"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.py

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,46 @@
1-
#!/usr/bin/env python
21
# -*- coding: utf-8 -*-
32

43
# Setup module for the Data Manager Job Decoder module
54
#
6-
# January 2022
5+
# April 2022
76

8-
from setuptools import setup
97
import os
8+
import setuptools
109

11-
# Pull in the essential run-time requirements
12-
with open('requirements.txt') as file:
13-
requirements = file.read().splitlines()
1410

11+
# Pull in the essential run-time requirements
12+
with open("requirements.txt", "r", encoding="utf-8") as fh:
13+
requirements = fh.read().splitlines()
1514

1615
# 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-
author_email='[email protected]',
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+
author_email="[email protected]",
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"],
3430
# Our modules to package
35-
packages=['decoder'],
31+
packages=["decoder"],
3632
include_package_data=True,
37-
3833
# Project classification:
3934
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
4035
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",
4843
],
49-
5044
install_requires=requirements,
51-
5245
zip_safe=False,
53-
5446
)

0 commit comments

Comments
 (0)