Comments (6)
The normal Click way of creating aliases doesn't really work here: https://click.palletsprojects.com/en/7.x/advanced/#command-aliases and https://github.com/ofek/hatch/blob/df2c9d46ee7713a1bc156c361cfd0f78e5935297/hatch/cli.py#L10
Because it requires modifying the command group (in this case the publish
variable) - but that's created in Datasette core. The plugin just gets to do this: https://github.com/simonw/datasette-publish-now/blob/420f349b278857f62183d8e9835d64f116758be7/datasette_publish_now/__init__.py#L43-L67
from datasette-publish-vercel.
Could I register two commands - now
and vercel
- with the only difference being that the help
for now
says "Alias for vercel
"?
from datasette-publish-vercel.
Still needed:
- Rename this GitHub repository
- Ship a new 0.7 renamed package to PyPI
- Use https://github.com/simonw/pypi-rename to ship a 0.7
datasette-publish-now
redirect package to PyPI
from datasette-publish-vercel.
I renamed this repo to simonw/datasette-publish-vercel
from datasette-publish-vercel.
simon@Simons-MacBook-Pro /tmp % cookiecutter gh:simonw/pypi-rename
You've downloaded /Users/simon/.cookiecutters/pypi-rename before. Is it okay to delete and re-download it? [yes]:
new_package_name []: datasette-publish-vercel
old_package_name []: datasette-publish-now
old_package_new_version []: 0.7
simon@Simons-MacBook-Pro /tmp % cd datasette-publish-now
simon@Simons-MacBook-Pro datasette-publish-now % find .
.
./README.md
./setup.py
simon@Simons-MacBook-Pro datasette-publish-now % cat README.md
# datasette-publish-now is now datasette-publish-vercel
This package has been renamed. Use `pip install datasette-publish-vercel` instead.
New package: https://pypi.org/project/datasette-publish-vercel/
simon@Simons-MacBook-Pro datasette-publish-now % cat setup.py
from setuptools import setup
import os
VERSION = "0.7"
def get_long_description():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
) as fp:
return fp.read()
setup(
name="datasette-publish-now",
description="datasette-publish-now is now datasette-publish-vercel",
long_description=get_long_description(),
long_description_content_type="text/markdown",
version=VERSION,
install_requires=["datasette-publish-vercel"],
classifiers=["Development Status :: 7 - Inactive"],
)
from datasette-publish-vercel.
$ python3 setup.py sdist
running sdist
running egg_info
creating datasette_publish_now.egg-info
writing datasette_publish_now.egg-info/PKG-INFO
writing dependency_links to datasette_publish_now.egg-info/dependency_links.txt
writing requirements to datasette_publish_now.egg-info/requires.txt
writing top-level names to datasette_publish_now.egg-info/top_level.txt
writing manifest file 'datasette_publish_now.egg-info/SOURCES.txt'
reading manifest file 'datasette_publish_now.egg-info/SOURCES.txt'
writing manifest file 'datasette_publish_now.egg-info/SOURCES.txt'
running check
warning: check: missing required meta-data: url
warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied
creating datasette-publish-now-0.7
creating datasette-publish-now-0.7/datasette_publish_now.egg-info
copying files to datasette-publish-now-0.7...
copying README.md -> datasette-publish-now-0.7
copying setup.py -> datasette-publish-now-0.7
copying datasette_publish_now.egg-info/PKG-INFO -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/SOURCES.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/dependency_links.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/requires.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
copying datasette_publish_now.egg-info/top_level.txt -> datasette-publish-now-0.7/datasette_publish_now.egg-info
Writing datasette-publish-now-0.7/setup.cfg
creating dist
Creating tar archive
removing 'datasette-publish-now-0.7' (and everything under it)
$ twine upload dist/datasette-publish-now-0.7.tar.gz
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: simonw
Enter your password:
Uploading datasette-publish-now-0.7.tar.gz
100%|███████████| 3.94k/3.94k [00:01<00:00, 2.66kB/s]
View at:
https://pypi.org/project/datasette-publish-now/0.7/
https://pypi.org/project/datasette-publish-now/
from datasette-publish-vercel.
Related Issues (20)
- Signing secret not used HOT 1
- [Warning] The `name` property in vercel.json is deprecated
- template directory fails on non-default path HOT 1
- `--scope teamname` option HOT 2
- `datasette publish vercel` having issues with exporting JSON HOT 18
- Datasette 0.59 broke this plugin
- Site no longer deploys HOT 1
- Ability to specify a custom vercel.json HOT 2
- Use the new File System API HOT 1
- Query page .csv and .json links are not correctly URL-encoded on Vercel under unknown specific conditions HOT 8
- Ensure ds.invoke_startup() runs on startup HOT 1
- `--crossdb` option for publishing with `crossdb=True`
- Error! unknown or unexpected option: --no-clipboard HOT 4
- RuntimeError('There is no current event loop in thread %r.') HOT 10
- Use Vercel's Build Output API
- WARN! `--confirm` is deprecated, please use `--yes` instead HOT 4
- --setting allow_download 0 causes a 500 error HOT 3
- Bug cannot read properties of undefined HOT 7
- Error: No such command 'vercel'. HOT 1
- Unable to deploy using Vercel CLI 32.5.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette-publish-vercel.