Skip to content

Commit

Permalink
Test build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudd-O committed Nov 23, 2022
1 parent 42df824 commit 666c0df
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ dist
*.egg-info
build
.settings
*.tar.gz
*.rpm
12 changes: 8 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
include README.md
include toport/*
include doc/*
include applications/*.desktop
include test/*py
include test/testdata/*
include test/dogtail/*.py
include tests/*py
include tests/testdata/*
include tests/dogtail/*.py
include *.spec
include tox.ini
include Jenkinsfile
include build.parameters
global-exclude *.py[cod]
2 changes: 1 addition & 1 deletion build.parameters
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["RELEASE": "34 35"]
["RELEASE": "36"]
66 changes: 66 additions & 0 deletions ledgerhelpers.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_spec_file

%define debug_package %{nil}

%define _name ledgerhelpers

%define mybuildnumber %{?build_number}%{?!build_number:1}

Name: python-%{_name}
Version: 0.3.8
Release: %{mybuildnumber}%{?dist}
Summary: A collection of helper programs and a helper library for Ledger (ledger-cli)

License: GPLv2+
URL: https://github.com/Rudd-O/%{_name}
Source: %{url}/archive/v%{version}/%{_name}-%{version}.tar.gz

BuildArch: noarch
BuildRequires: python3

%global _description %{expand:
This is a collection of small single-purpose programs to aid your accounting
with [Ledger](https://github.com/ledger/ledger) (ledger-cli). Think of it
as the batteries that were never included with Ledger.}

%description %_description

%package -n python3-%{_name}
Summary: %{summary}

%description -n python3-%{_name} %_description

%prep
%autosetup -p1 -n %{_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -t


%build
%pyproject_wheel


%install
%pyproject_install

%pyproject_save_files %{_name}


%check
%tox


# Note that there is no %%files section for
# the unversioned python module, python-pello.

# For python3-pello, %%{pyproject_files} handles code files and %%license,
# but executables and documentation must be listed in the spec file:

%files -n python3-%{_name} -f %{pyproject_files}
%doc README.md doc/*


%changelog
* Thu Jun 16 2022 Manuel Amador <[email protected]> 0.1.0-1
- First RPM packaging release
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
65 changes: 61 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
[bdist_rpm]
release = 1%%{?dist}
doc_files = README.md
requires = gobject-introspection, gtk3, pygobject3, ledger3-python, python3-yahoo-finance
[metadata]
name = ledgerhelpers
version = attr: ledgerhelpers.__version__
author = Manuel Amador (Rudd-O)
author_email = [email protected]
description = A collection of helper programs and a helper library for Ledger (ledger-cli)
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/Rudd-O/ledgerhelpers
classifiers =
Development Status :: 4 - Beta
Environment :: X11 Applications :: GTK
Intended Audience :: End Users/Desktop
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Topic :: Office/Business :: Financial :: Accounting
license = GPLv2+

[options]
include_package_data = True
install_requires =
PyGObject
ledger
yahoo-finance
package_dir =
= src
packages = find:
scripts =
bin/addtrans
bin/cleartrans-cli
bin/sellstock-cli
bin/sorttrans-cli
bin/updateprices
bin/withdraw-cli

[options.data_files]
share/applications =
applications/withdraw-cli.desktop
applications/cleartrans-cli.desktop
applications/sortttrans-cli.desktop
applications/updateprices.desktop
applications/sellstock-cli.desktop
applications/addtrans.desktop
share/doc/ledgerhelpers =
doc/addrans.md
doc/addtrans-account.png
doc/addtrans-amount.png
doc/addtrans-dropdown.png
doc/addtrans-readyagain.png
doc/addtrans-started-up.Programming
share/man/man1 =
man/addtrans.1
man/cleartrans-cli.1
man/sellstock-cli.1
man/sorttrans-cli.1
man/withdraw-cli.1

[options.packages.find]
where = src
9 changes: 1 addition & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist =
envlist = basepython

[testenv]
sitepackages = True
deps =
pytest
ledger
commands =
pytest

0 comments on commit 666c0df

Please sign in to comment.