Skip to content

Commit 429fff3

Browse files
committed
removing setup py usage
1 parent e5c0777 commit 429fff3

File tree

7 files changed

+34
-91
lines changed

7 files changed

+34
-91
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install -r dev_requirements.txt
21-
pip install .
20+
pip install ".[dev]"
2221
- name: Analysing the code with pylint
2322
run: |
2423
pylint featuremanagement
@@ -30,7 +29,7 @@ jobs:
3029
uses: streetsidesoftware/cspell-action@v6.8.0
3130
- name: Test with pytest
3231
run: |
33-
pip install -r tests/requirements.txt
32+
pip install ".[test]"
3433
pytest tests --doctest-modules --cov-report=xml --cov-report=html
3534
- name: Analysing the samples with pylint
3635
run: |

MANIFEST.in

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

cspell.config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ignorePaths:
1212
- '.*'
1313
- 'build'
1414
- 'docs'
15-
- 'dev_requirements.txt'
15+
- 'node_modules'
1616
- '*.egg-info'
1717
- '*.ini'
1818
- '*.toml'

dev_requirements.txt

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

pyproject.toml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ pythonpath = [
66
[tool.black]
77
line-length = 120
88

9-
[tool.pylint]
9+
[tool.pylint.format]
1010
max-line-length = 120
11+
12+
[tool.pylint.design]
1113
min-public-methods = 1
1214
max-branches = 20
1315
max-returns = 7
16+
17+
[tool.pylint."messages control"]
1418
disable = ["duplicate-code"]
1519

1620
[build-system]
17-
requires = ["setuptools>=61.0", "pylint", "pytest-asyncio", "mypy", "black"]
21+
requires = ["setuptools>=61.0"]
1822
build-backend = "setuptools.build_meta"
1923

2024
[project]
2125
name = "FeatureManagement"
22-
version = "2.1.0"
26+
dynamic = ["version"]
2327
authors = [
2428
{ name="Microsoft Corporation", email="appconfig@microsoft.com" },
2529
]
@@ -40,9 +44,33 @@ classifiers = [
4044
"License :: OSI Approved :: MIT License",
4145
]
4246

47+
[tool.setuptools.dynamic]
48+
version = {attr = "featuremanagement._version.VERSION"}
49+
50+
[tool.setuptools.packages.find]
51+
include = ["featuremanagement*"]
52+
4353
[project.urls]
4454
Homepage = "https://github.com/microsoft/FeatureManagement-Python"
4555
Issues = "https://github.com/microsoft/FeatureManagement-Python/issues"
4656

4757
[project.optional-dependencies]
4858
AzureMonitor = ["azure-monitor-events-extension<2.0.0"]
59+
test = [
60+
"azure-monitor-opentelemetry",
61+
"azure-monitor-events-extension",
62+
]
63+
dev = [
64+
"pytest >= 7.0.0, < 10.0.0",
65+
"pytest-cov >= 4.0.0, < 8.0.0",
66+
"pytest-asyncio >= 0.21.0, < 2.0.0",
67+
"black >= 23.0.0, < 27.0.0",
68+
"pylint >= 3.0.0, < 5.0.0",
69+
"mypy >= 1.0.0, < 2.0.0",
70+
"sphinx >= 7.0.0, < 10.0.0",
71+
"sphinx_rtd_theme >= 2.0.0, < 4.0.0",
72+
"sphinx-toolbox >= 3.0.0, < 5.0.0",
73+
"myst_parser >= 2.0.0, < 6.0.0",
74+
"opentelemetry-api >= 1.20.0, < 2.0.0",
75+
"opentelemetry-sdk >= 1.20.0, < 2.0.0",
76+
]

setup.py

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

tests/requirements.txt

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

0 commit comments

Comments
 (0)