Skip to content

Commit

Permalink
update package to use pyproject.toml and build for fedora37
Browse files Browse the repository at this point in the history
  • Loading branch information
Iolaum committed Dec 28, 2022
1 parent f2e6f30 commit 8f2ac17
Show file tree
Hide file tree
Showing 12 changed files with 114 additions and 706 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ ENV/
### Cutome additions ###

# ignore rpm directory
rpm
_rpm
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Ready to contribute? Here's how to set up `fcust` for local development.
4. From the root of the repository create a python virtual environment to use for our project.
Install the project in editable mode along with developer dependencies. ::

$ python3 -m venv venv
$ python3 -m venv venv --system-site-packages
$ source venv/bin/activate
(venv) $ pip install -e .[dev]

Expand Down
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
History
=======

1.0.1 (2022-12-28)
-------------------

* Updated package for Fedora 37.
* Updated package to use pyproject.toml.

1.0.0 (2021-11-21)
-------------------

Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst
include requirements.txt
include Dockerfile
exclude .yamllint
exclude fcust.spec
Expand All @@ -16,5 +15,4 @@ recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
include docs/_build/man/fcust.1
recursive-exclude docs/_build/html *
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and
clean-build: ## remove build artifacts
rm -fr build/
rm -fr dist/
rm -fr rpm/*
rm -fr _rpm/*
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
Expand Down Expand Up @@ -94,17 +94,18 @@ dist: clean ## builds source and wheel package
install: clean ## install the package to the active Python's site-packages
python setup.py install

fedpkg: # build package for Fedora (35)
fedpkg: # build package for Fedora (37)
# build package locally
make dist
# remove all previous artifacts
rm -rf ./rpm/*
rm -rf _rpm/*
# move new package to rpm folder
mv dist/fcust-*.tar.gz ./rpm/
cp dist/fcust-*.tar.gz ./_rpm/
# add needed spec file
cp fcust.spec ./rpm/
cp fcust.spec ./_rpm/
cp fcust_source.tar ./_rpm/
# create rpm packages
fedpkg --release f35 --path ./rpm local
fedpkg --release f37 --path ./_rpm local
echo "RPM Files Built!"
# check rpm packages
fedpkg --release f35 --path ./rpm lint
fedpkg --release f37 --path ./_rpm lint
Loading

0 comments on commit 8f2ac17

Please sign in to comment.