Skip to content

Commit efda472

Browse files
committed
Change package to src layout
1 parent 5a82373 commit efda472

File tree

3 files changed

+15
-26
lines changed

3 files changed

+15
-26
lines changed

setup.cfg

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = procrunner
33
description = Versatile utility function to run external processes
44
version = 2.3.1
5+
author = Diamond Light Source - Scientific Software et al.
6+
author_email = [email protected]
57
classifiers =
68
Development Status :: 5 - Production/Stable
79
Intended Audience :: Developers
@@ -17,12 +19,23 @@ classifiers =
1719
Topic :: Software Development :: Libraries :: Python Modules
1820
license = BSD
1921
license_file = LICENSE
20-
project-urls =
22+
project_urls =
2123
Download = https://github.com/DiamondLightSource/python-procrunner/tags
2224
Documentation = https://procrunner.readthedocs.io/
2325
GitHub = https://github.com/DiamondLightSource/python-procrunner
2426
Bug-Tracker = https://github.com/DiamondLightSource/python-procrunner/issues
2527

28+
[options]
29+
include_package_data = True
30+
packages = procrunner
31+
package_dir =
32+
=src
33+
python_requires = >=3.6
34+
zip_safe = False
35+
36+
[options.packages.find]
37+
where = src
38+
2639
[flake8]
2740
# Black disagrees with flake8 on a few points. Ignore those.
2841
ignore = E203, E266, E501, W503
@@ -40,9 +53,5 @@ select =
4053
# flake8-comprehensions, https://github.com/adamchainz/flake8-comprehensions
4154
C4,
4255

43-
[aliases]
44-
test = pytest
45-
4656
[tool:pytest]
4757
collect_ignore = ['setup.py']
48-

setup.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,12 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
4-
from setuptools import find_packages, setup
1+
from setuptools import setup
52

63
with open("README.rst") as readme_file:
74
readme = readme_file.read()
85

96
with open("HISTORY.rst") as history_file:
107
history = history_file.read()
118

12-
requirements = []
13-
14-
setup_requirements = []
15-
16-
test_requirements = ["pytest"]
17-
189
setup(
19-
author="Markus Gerstel",
20-
author_email="[email protected]",
21-
install_requires=requirements,
2210
long_description=readme + "\n\n" + history,
23-
include_package_data=True,
2411
keywords="procrunner",
25-
packages=find_packages(include=["procrunner"]),
26-
python_requires=">=3.6",
27-
setup_requires=setup_requirements,
28-
test_suite="tests",
29-
tests_require=test_requirements,
30-
url="https://github.com/DiamondLightSource/python-procrunner",
31-
zip_safe=False,
3212
)

0 commit comments

Comments
 (0)