Skip to content

Commit

Permalink
Merge pull request #146 from melexis/fix-entrypoint-windows
Browse files Browse the repository at this point in the history
Remove unneeded files from package and upgrade build dependencies
  • Loading branch information
Letme authored Sep 12, 2024
2 parents 2195ddd + 26e843f commit 2620523
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 106 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: pip install -e .
- name: Upload HTML documentation
if: matrix.python-version == '3.10'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-doc
path: docs/_build
Expand All @@ -52,7 +52,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Download HTML documentation from job 'test'
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: html-doc
path: docs/_build
Expand Down
24 changes: 9 additions & 15 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
graft docs
graft src
graft tests
exclude src/mlx/warnings/__version__.py

# Include the readme file
include README.rst
include LICENSE
exclude src/mlx/warnings/__version__.py
recursive-exclude docs _build *
recursive-exclude tests test_out *

include tox.ini .travis.yml .codeclimate.yml codecov.yml

global-exclude *.py[cod] __pycache__ *.so *.dylib

# added by check_manifest.py
include NOTICE
include *.md
exclude MANIFEST.in
exclude .gitignore
recursive-exclude .github *
recursive-exclude docs *
recursive-exclude tests *

# added by check_manifest.py
recursive-include ci *.py
exclude tox.ini .travis.yml .codeclimate.yml codecov.yml

# added by check_manifest.py
include *.md
global-exclude *.py[cod] __pycache__ *.so *.dylib
16 changes: 0 additions & 16 deletions SECURITY.md

This file was deleted.

57 changes: 0 additions & 57 deletions ci/bootstrap.py

This file was deleted.

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build-system]
requires = ["setuptools-scm>=6.0.0", "setuptools>=69.0.3"]
requires = ["setuptools-scm>=8.0.4", "setuptools>=71.0.4"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "src/mlx/warnings/__version__.py"
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
setup(
name='mlx.warnings',
url=PROJECT_URL,
use_scm_version={
'write_to': 'src/mlx/warnings/__version__.py'
},
author='Bavo Van Achte',
author_email='[email protected]',
description='Command-line alternative for https://github.com/jenkinsci/warnings-plugin. '
Expand All @@ -27,7 +24,7 @@
zip_safe=False,
license='Apache License, Version 2.0',
platforms='any',
packages=find_namespace_packages(where='src', include=['mlx.warnings']),
packages=find_namespace_packages(where='src', exclude=("doc.*", "doc", "tests.*", "tests", "build*")),
package_dir={'': 'src'},
entry_points={'console_scripts': ['mlx-warnings = mlx.warnings.warnings:main']},
install_requires=requires,
Expand Down
12 changes: 1 addition & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ basepython =
py310: {env:TOXPYTHON:python3.10}
py311: {env:TOXPYTHON:python3.11}
py312: {env:TOXPYTHON:python3.12}
{lxml_support,bootstrap,spell,docs,check,coverage,report,clean}: python3
{lxml_support,spell,docs,check,coverage,report,clean}: python3
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
Expand Down Expand Up @@ -50,16 +50,6 @@ deps =
commands =
pytest -vv tests/

[testenv:bootstrap]
deps =
jinja2
matrix
skip_install = true
commands =
python ci/bootstrap.py
passenv =
*

[testenv:spell]
setenv =
SPELLCHECK=1
Expand Down

0 comments on commit 2620523

Please sign in to comment.