Skip to content

Commit 0f9cb41

Browse files
committed
Switch to pyproject.toml
This patch makes the project switch from the legacy specification of metadata in the `setup.py` to them being specified in a `pyproject.toml` file.
1 parent cdcd1f5 commit 0f9cb41

File tree

3 files changed

+28
-26
lines changed

3 files changed

+28
-26
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include LICENSE README.md requirements.txt
1+
include LICENSE README.md

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[build-system]
2+
requires = ['setuptools >= 61.0']
3+
build-backend = 'setuptools.build_meta'
4+
5+
[project]
6+
name = 'deterrers-cli'
7+
version = '0.6'
8+
authors = [
9+
{name = 'Lars Kiesow', email = 'lkiesow@uos.de'}
10+
]
11+
description = 'Command line client for DETERRERS'
12+
readme = {file = 'README.md', content-type = 'text/markdown'}
13+
requires-python = ">=3.10"
14+
license = {text = 'MIT'}
15+
dependencies = [
16+
'deterrers-api>=0.4',
17+
'PyYAML',
18+
'Click'
19+
]
20+
21+
[project.urls]
22+
Homepage = 'https://github.com/virtUOS/deterrers-cli'
23+
Repository = 'https://github.com/virtUOS/deterrers-cli'
24+
25+
[project.scripts]
26+
deterrers-cli = 'deterrerscli.__main__:cli'

setup.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
11
from setuptools import setup
2-
import os
32

4-
5-
def read(filename):
6-
path = os.path.abspath(os.path.dirname(__file__))
7-
with open(os.path.join(path, filename), encoding='utf-8') as f:
8-
return f.read()
9-
10-
11-
setup(
12-
name='deterrers-cli',
13-
version='0.6',
14-
description='Command line client for DETERRERS',
15-
url='https://github.com/virtUOS/proteuscmd',
16-
author='Lars Kiesow',
17-
author_email='lkiesow@uos.de',
18-
license='MIT',
19-
packages=['deterrerscli'],
20-
license_files=('LICENSE'),
21-
include_package_data=True,
22-
install_requires=read('requirements.txt').split(),
23-
long_description=read('README.md'),
24-
long_description_content_type='text/markdown',
25-
entry_points={
26-
'console_scripts': ['deterrers-cli = deterrerscli.__main__:cli'],
27-
})
3+
setup()

0 commit comments

Comments
 (0)