Skip to content

Commit

Permalink
Merge branch 'v0.2_release'
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeutschmann committed Aug 25, 2021
2 parents 4585072 + cdfbdf9 commit 1a75e00
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include zunis_lib/zunis/utils/config/*.yaml
include README.md
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
.PHONY: clean data requirements doc static-doc docinstall serve
.PHONY: clean data requirements doc static-doc docinstall serve build pypi-upload

#################################################################################
# GLOBALS #
#################################################################################

PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
PROJECT_NAME = pytorch_flows
PROJECT_NAME = zunis
PYTHON_INTERPRETER = python
DOC_DIR = docs/
DOC_BUILD_DIR = doc_build/
PROJECT_SRC = zunis_lib/

ifeq (,$(shell which conda))
HAS_CONDA=False
Expand All @@ -29,6 +30,7 @@ requirements:
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
rm -rf dist zunis.egg-info

## Build automatic API documentation
doc:
Expand All @@ -51,6 +53,12 @@ doc-install:
serve:
$(MAKE) serve -C $(DOC_BUILD_DIR)

build:
python setup.py sdist bdist_wheel

pypi-upload:
python -m twine upload dist/*


#################################################################################
# PROJECT RULES #
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ python benchmark_hypersphere.py

## Library usage

For basic uses, a RealNVP-based integrator is provided with default choices and can be created and used as follows:
For basic applications, the integrator is provided with default choices and can be created and used as follows:

```
```python
import torch
from zunis.integration import Integrator

Expand Down
2 changes: 1 addition & 1 deletion doc_build/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ vegas==4.0.1

torchps @ git+https://github.com/NGoetz/TorchPS
# Editable Zunis install
-e ./zunis_lib
-e .
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ widgetsnbextension==3.5.1
torchps @ git+https://github.com/NGoetz/TorchPS

# Editable Zunis install
-e ./zunis_lib
-e .
9 changes: 5 additions & 4 deletions zunis_lib/setup.py → setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

setup(
name='zunis',
packages=find_packages(),
packages=find_packages(where='zunis_lib'),
package_dir={'': 'zunis_lib'},
install_requires=[
"numpy == 1.19.1",
"pandas == 1.1.0",
Expand All @@ -11,14 +12,14 @@
"dictwrapper == 1.3",
"ruamel.yaml <= 0.16.12"
],
version='0.2rc3',
version='0.2',
description='Neural Importance Sampling',
long_description=open("../README.md").read(),
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author='Nicolas Deutschmann',
author_email="[email protected]",
url="https://zunis.readthedocs.io",
download_url="https://github.com/ndetschmann/zunis",
download_url="https://github.com/ndeutschmann/zunis",
license='MIT',
include_package_data = True
)
1 change: 0 additions & 1 deletion zunis_lib/MANIFEST.in

This file was deleted.

0 comments on commit 1a75e00

Please sign in to comment.