Skip to content

Commit

Permalink
nixpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
charludo committed Jan 16, 2025
1 parent e9836eb commit 64fbcec
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 51 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- nothing

## [1.2.0] - 2025-04-16
## [1.2.1] - 2025-04-16
### Added
- Nix Flake containing both a dev shell and the barely package

## [1.2.0] - 2025-04-16
### Changed
- include the full `meta` field of collectibles in the exhibition list
- use any `meta` field for sorting collections
Expand Down Expand Up @@ -120,7 +121,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.9.0] - 2021-06-19
Initial beta release

[Unreleased]: https://github.com/charludo/barely/compare/v1.2.0...HEAD
[Unreleased]: https://github.com/charludo/barely/compare/v1.2.1...HEAD
[1.2.1]: https://github.com/charludo/barely/compare/v1.2.0...v1.2.1
[1.2.0]: https://github.com/charludo/barely/compare/v1.1.4...v1.2.0
[1.1.4]: https://github.com/charludo/barely/compare/v1.1.2...v1.1.4
[1.1.2]: https://github.com/charludo/barely/compare/v1.1.0...v1.1.2
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,11 @@ Github Project Link: [https://github.com/charludo/barely](https://github.com/cha
## Changelog
Most recent entries:

## [1.2.0] - 2025-04-16
## [1.2.1] - 2025-04-16
### Added
- Nix Flake containing both a dev shell and the barely package

## [1.2.0] - 2025-04-16
### Changed
- include the full `meta` field of collectibles in the exhibition list
- use any `meta` field for sorting collections
Expand Down
36 changes: 36 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,42 @@
pkgs = import nixpkgs { inherit system; };
in
{
packages.default = pkgs.python312Packages.buildPythonPackage rec {
pname = "barely";
version = "1.2.1";

src = pkgs.fetchPypi {
inherit pname version;
hash = "sha256-w3rkFiCJIwoBOQ+t1npfeJWcwB/8wCZC8bcP3wLms1U=";
};


doCheck = false;

pyproject = true;
build-system = [ pkgs.python312Packages.setuptools ];

propagatedBuildInputs = with pkgs.python312Packages; [
pip
click
click-default-group
coloredlogs
mock
pyyaml
watchdog
pillow
gitpython
pygments
libsass
pysftp
livereload
binaryornot
jinja2
mistune
calmjs
] ++ [ pkgs.python312Full ];
};

devShells.default = pkgs.mkShell {
packages = with pkgs; [
python39Full
Expand Down
98 changes: 50 additions & 48 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pathlib

import setuptools

# The directory containing this file
Expand All @@ -7,51 +8,52 @@
# The text of the README file
README = (HERE / "README.md").read_text()

setuptools.setup(name='barely',
version='1.2.0',
description='barely is a lightweight, but highly extensible static site generator written in pure python.',
long_description=README,
long_description_content_type="text/markdown",
keywords=['static site generator', 'jinja2', 'markdown', 'web development', 'blog'],
url='https://notablog.io',
download_url='https://github.com/charludo/barely/archive/refs/tags/v1.2.0.tar.gz',
author='Charlotte Hartmann Paludo',
author_email='[email protected]',
license='GPL-3.0',
packages=setuptools.find_packages(),
include_package_data=True,
zip_safe=False,
entry_points={"console_scripts": ["barely = barely.cli:run"]},
python_requires=">=3.9.0",
install_requires=[
"click>=8.0.0",
"click-default-group>=1.2.2",
"coloredlogs>=15.0.0",
"mock>=4.0.0",
"pyyaml>=5.3.0",
"watchdog>=2.0.0",
"pillow>=8.0.0",
"GitPython>=3.0.0",
"pygments>=2.5.0",
"libsass>=0.21.0",
"pysftp>=0.2.5",
"livereload>=2.5.0",
"binaryornot>=0.4.0",
"jinja2>=3.0.0",
"mistune==2.0.0rc1",
"calmjs>=3.3.0"
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: General',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.9',
'Environment :: Console',
'Operating System :: OS Independent'
]
)
setuptools.setup(
name="barely",
version="1.2.1",
description="barely is a lightweight, but highly extensible static site generator written in pure python.",
long_description=README,
long_description_content_type="text/markdown",
keywords=["static site generator", "jinja2", "markdown", "web development", "blog"],
url="https://notablog.io",
download_url="https://github.com/charludo/barely/archive/refs/tags/v1.2.1.tar.gz",
author="Charlotte Hartmann Paludo",
author_email="[email protected]",
license="GPL-3.0",
packages=setuptools.find_packages(),
include_package_data=True,
zip_safe=False,
entry_points={"console_scripts": ["barely = barely.cli:run"]},
python_requires=">=3.9.0",
install_requires=[
"click>=8.0.0",
"click-default-group>=1.2.2",
"coloredlogs>=15.0.0",
"mock>=4.0.0",
"pyyaml>=5.3.0",
"watchdog>=2.0.0",
"pillow>=8.0.0",
"GitPython>=3.0.0",
"pygments>=2.5.0",
"libsass>=0.21.0",
"pysftp>=0.2.5",
"livereload>=2.5.0",
"binaryornot>=0.4.0",
"jinja2>=3.0.0",
"mistune>=2.0.0rc1",
"calmjs>=3.3.0",
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Text Processing :: General",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Environment :: Console",
"Operating System :: OS Independent",
],
)

0 comments on commit 64fbcec

Please sign in to comment.