-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11c0979
commit d5c13be
Showing
10 changed files
with
66 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "arel" | ||
description = "Browser hot reload for Python ASGI web apps" | ||
requires-python = ">=3.7" | ||
license = { text = "MIT" } | ||
authors = [ | ||
{ name = "Florimond Manca", email = "florimond.manca@protonmail.com" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Framework :: AsyncIO", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
dependencies = [ | ||
"starlette==0.*", | ||
"watchgod==0.*", | ||
] | ||
dynamic = ["version", "readme"] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/florimondmanca/arel" | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "arel.__version__" } | ||
readme = { file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,3 @@ | ||
import re | ||
from pathlib import Path | ||
from setuptools import setup | ||
|
||
from setuptools import find_packages, setup | ||
|
||
|
||
def get_version(package: str) -> str: | ||
version = (Path("src") / package / "__version__.py").read_text() | ||
match = re.search("__version__ = ['\"]([^'\"]+)['\"]", version) | ||
assert match is not None | ||
return match.group(1) | ||
|
||
|
||
def get_long_description() -> str: | ||
with open("README.md", encoding="utf8") as readme: | ||
with open("CHANGELOG.md", encoding="utf8") as changelog: | ||
return readme.read() + "\n\n" + changelog.read() | ||
|
||
|
||
setup( | ||
name="arel", | ||
version=get_version("arel"), | ||
description="Browser hot reload for Python ASGI web apps", | ||
long_description=get_long_description(), | ||
long_description_content_type="text/markdown", | ||
url="http://github.com/florimondmanca/arel", | ||
author="Florimond Manca", | ||
author_email="florimond.manca@gmail.com", | ||
packages=find_packages("src"), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=["starlette==0.*", "watchgod==0.*"], | ||
python_requires=">=3.7", | ||
license="MIT", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Framework :: AsyncIO", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
], | ||
) | ||
setup() # Editable installs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from .__version__ import __version__ | ||
from ._app import HotReload | ||
from ._models import Path | ||
|
||
__version__ = "0.2.0" | ||
|
||
__all__ = ["__version__", "HotReload", "Path"] |
This file was deleted.
Oops, something went wrong.