Skip to content

Commit

Permalink
Merge pull request #22 from quillcraftsman/python312
Browse files Browse the repository at this point in the history
Python 3.12 support
  • Loading branch information
quillcraftsman authored Nov 1, 2023
2 parents 07f9b52 + 62a781c commit a3365f6
Show file tree
Hide file tree
Showing 42 changed files with 227 additions and 2,260 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ celerybeat.pid
.env
.venv
env/
env312/
venv/
ENV/
env.bak/
Expand Down
36 changes: 3 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@

## What is LavaCactus

LavaCactus is the static site generator (SSG) based on [Cactus][cactus_github_page] ported to use with **python 3.11 and django 4**
LavaCactus is the static site generator (SSG) based on [Cactus][cactus_github_page] ported to use with **python 3.12 and django 4**

The original library work with Python 2.6, 2.7, 3.4 and 3.5 and django<2.0

Now it works on **python 3.8-3.11**
Now it works on **python 3.8-3.12**

## What is Cactus

Expand All @@ -75,7 +75,7 @@ It works great for company, portfolio, personal, support websites and blogs.

## What is new in LavaCactus

* LavaCactus work with python 3.11 (3.8-3.11) and django 4.0
* LavaCactus work with python 3.12 (3.8-3.12) and django 4.0
* LavaCactus can make structure for multilanguage sites
* LavaCactus has GitHub action to publish build on GitHub pages

Expand Down Expand Up @@ -110,12 +110,6 @@ To start editing and previewing your site type the following. Then point your br
If you use serve your site will be work on test server and you can use /index.html - links starts with /.
The other way it's to use browser and index.html static file. In this way use index.html in links (without / at the beginning).

In the [Cactus][cactus_github_page] project you can deploy your site on the different hosting with command deploy:

cactus deploy

In this version this functional hasn't been tested.

## Contribute

You're welcome!
Expand Down Expand Up @@ -213,16 +207,6 @@ To enable internationalization for your project:
7. Edit the .po file that was created with translations.
8. Run `cactus build` to create multilanguage site structure

### Deploying

Cactus can deploy your website directly to S3, all you need are your Amazon credentials and a bucket name. Cactus
remembers these in a configuration file name config.json to make future deploys painless. The secret key is stored
securely in the Keychain or similar services on other OSs.

cactus deploy

After deploying you can visit the website directly. Cactus also makes sure all your text files are compressed and adds caching headers.

### Extras

Modify `config.json` to set a custom blog path, default author name, or date pattern used to parse metadata. The defaults are:
Expand Down Expand Up @@ -331,20 +315,6 @@ to not hurt your search rankings:

<link rel="canonical" href="{{ CURRENT_PAGE.absolute_final_url }}" />


#### Nameserver configuration

To set up a hosted zone and generate the correct nameserver records for your domain, make sure your bucket is a valid domain name, and run:

cactus domain:setup

Cactus will return with a set of nameservers that you can then enter with your registrar. To see the list again run:

cactus domain:list

If your domain is 'naked' (eg. without www), Cactus will add create an extra bucket that redirects the www variant of your domain to your naked domain (so www.lavacactus.com to cactus.com). All the above is Amazon only for now.


#### Extra files

Cactus will auto generate a `robots.txt` and `sitemap.xml` file for you based on your pages.
Expand Down
38 changes: 0 additions & 38 deletions cactus/deployment/__init__.py

This file was deleted.

57 changes: 0 additions & 57 deletions cactus/deployment/auth.py

This file was deleted.

Empty file.
8 changes: 0 additions & 8 deletions cactus/deployment/cloudfiles/auth.py

This file was deleted.

39 changes: 0 additions & 39 deletions cactus/deployment/cloudfiles/engine.py

This file was deleted.

24 changes: 0 additions & 24 deletions cactus/deployment/cloudfiles/file.py

This file was deleted.

Loading

0 comments on commit a3365f6

Please sign in to comment.