Skip to content

Commit

Permalink
Enable installation into lapis namespace (#14)
Browse files Browse the repository at this point in the history
* added basic lapis.caching package

* installable into lapis namespace (see #13)

* changed README to rst and added dev install note
  • Loading branch information
maxfischer2781 authored Nov 28, 2020
1 parent 346b6a2 commit 423f9ae
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
=============
lapis.caching
=============

Caching extension for LAPIS simulator

Installation
============

Since the tooling support for namespace packages is incomplete,
`lapis.caching` works as a namespace package on top of
the non-namespace package `lapis`.
This prevents development installations (``pip install -e .``)
from working properly.
Empty file added lapis/caching/__init__.py
Empty file.
25 changes: 25 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import setuptools

with open("README.rst", "r") as readme:
long_description = readme.read()

setuptools.setup(
name="lapis.caching",
version="0.0.1",
author="Eileen Kuehn, Max Fischer",
author_email="[email protected]",
description="LAPIS extension to simulate caching",
long_description=long_description,
url="https://github.com/MatterMiners/lapis.caching",
keywords="caching simulation opportunistic scheduling scheduler",
# Even though `lapis` is not a namespace package, declaring `lapis.caching`
# as one allows to drop `.caching` into `.lapis`. The result works as one.
packages=setuptools.find_namespace_packages(include=["lapis.*"]),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Development Status :: 2 - Pre-Alpha",
],
install_requires=["lapis-sim"],
python_requires=">=3.6",
)

0 comments on commit 423f9ae

Please sign in to comment.