-
Notifications
You must be signed in to change notification settings - Fork 4
modernize: native namespace, pyproject.toml, py39+, src/, ... #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
391413a
move metadata to pyproject.toml
ThomasWaldmann fff0d38
namespace package: use pep420 style
ThomasWaldmann 308bee9
it's 2024
ThomasWaldmann 4868d8b
README.txt AUTHORS.txt -> *.rst
ThomasWaldmann c78cac7
pyupgrade --py38-plus --keep-percent-format **/*.py
ThomasWaldmann 8eed00d
src/ based project layout
ThomasWaldmann a23c1e3
fix typos
ThomasWaldmann 95d32a0
fix ruff complaints
ThomasWaldmann 19a4927
It's 2025.
ThomasWaldmann 6f48fbb
add github CI
ThomasWaldmann 277e43e
use f-strings
ThomasWaldmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| # badge: https://github.com/xstatic-py/xstatic/workflows/CI/badge.svg?branch=master | ||
|
|
||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| paths: | ||
| - '**.py' | ||
| - '**.yml' | ||
| - '**.toml' | ||
| - '!docs/**' | ||
| pull_request: | ||
| branches: [ master ] | ||
| paths: | ||
| - '**.py' | ||
| - '**.yml' | ||
| - '**.toml' | ||
| - '!docs/**' | ||
|
|
||
| jobs: | ||
| lint: | ||
|
|
||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 5 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: chartboost/ruff-action@v1 | ||
|
|
||
| CI: | ||
|
|
||
| needs: lint | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: macos-latest | ||
| python-version: '3.9' | ||
| - os: ubuntu-24.04 | ||
| python-version: '3.10' | ||
| - os: ubuntu-24.04 | ||
| python-version: '3.11' | ||
| - os: ubuntu-24.04 | ||
| python-version: '3.12' | ||
| - os: ubuntu-24.04 | ||
| python-version: '3.13' | ||
|
|
||
| env: | ||
| TOXENV: ${{ matrix.toxenv }} | ||
|
|
||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 10 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install Python requirements | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools wheel build | ||
| - name: try building a package | ||
| run: python -m build | ||
| - name: Install and import xstatic packages (modernize branch) | ||
| run: | | ||
| python -m venv venv | ||
| . venv/bin/activate | ||
| pip install . | ||
| pip install git+https://github.com/xstatic-py/xstatic-bootstrap.git@modernize | ||
| pip install git+https://github.com/xstatic-py/xstatic-font-awesome.git@modernize | ||
| python -c "import xstatic; print('Importing...')" | ||
| python -c "from xstatic.pkg import bootstrap as xs; assert xs.NAME == 'bootstrap'" | ||
| python -c "from xstatic.pkg import font_awesome as xs; assert xs.NAME == 'font_awesome'" | ||
| deactivate | ||
| rm -rf venv | ||
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,5 +6,5 @@ License | |
| Authors | ||
| ======= | ||
|
|
||
| .. include:: ../../AUTHORS.txt | ||
| .. include:: ../../AUTHORS.rst | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Copyright: 2011-2025 by the XStatic authors, see AUTHORS.rst for details. | ||
| # License: MIT license, see LICENSE.txt for details. | ||
|
|
||
| [project] | ||
| name = "XStatic" | ||
| version = "2.0.0" | ||
| description = "XStatic base package with minimal support code" | ||
| readme = {file="README.rst", content-type="text/x-rst"} | ||
| authors = [{name="Thomas Waldmann", email="tw@waldmann-edv.de"}, ] | ||
| maintainers = [{name="Thomas Waldmann", email="tw@waldmann-edv.de"}, ] | ||
| requires-python = ">=3.9" | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Topic :: Software Development :: Libraries", | ||
| "Topic :: System :: Archiving :: Packaging", | ||
| "Topic :: System :: Installation/Setup", | ||
| "Topic :: System :: Software Distribution", | ||
| ] | ||
| keywords = ["xstatic", "static", "file", "resource", "python", "packages", "pypi", "require"] | ||
ThomasWaldmann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| license = "MIT" | ||
| dependencies = [] # there should never be a dependency! | ||
|
|
||
| [project.urls] | ||
| "Homepage" = "https://github.com/xstatic-py/xstatic" | ||
|
|
||
| [tool.setuptools] | ||
| # See also the MANIFEST.in file. | ||
| # We want to install all the files in the package directories. | ||
| include-package-data = true | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["src"] | ||
|
|
||
| [build-system] | ||
| requires = ["setuptools", "wheel", ] | ||
| build-backend = "setuptools.build_meta" | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Copyright: 2011-2025 by the XStatic authors, see AUTHORS.rst for details. | ||
| # License: MIT license, see LICENSE.txt for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.